{% extends "help/index.html" %}


{% block contentblock %}
    <div class="article">
        <div class="title">
            <div class="title-text">音频列表<span
                    class="update-time"><i>更新时间:</i><i>2019-11-20</i></span></div>
        </div>
        <div class="content">
            <h2>音频列表</h2>
            <h3>接口</h3>
            <code>/baidu_dueros/audio_list</code>
            <h5 id="参数">参数</h5>
            <table>
                <thead>
                <th>字段名</th>
                <th>类型</th>
                <th>是否必填</th>
                <th>描述</th>
                </thead>
                <tbody>
                <tr>
                    <td>appId</td>
                    <td>String</td>
                    <td>是</td>
                    <td>资源方唯一标示</td>
                </tr>
                <tr>
                    <td>albumId</td>
                    <td>String</td>
                    <td>是</td>
                    <td>专辑ID</td>
                </tr>
                <tr>
                    <td>page</td>
                    <td>int</td>
                    <td>可选</td>
                    <td>页码，从1开始</td>
                </tr>
                <tr>
                    <td>pageSize</td>
                    <td>int</td>
                    <td>可选</td>
                    <td>每页数据返回行数</td>
                </tr>
                <tr>
                    <td>timestamp</td>
                    <td>int</td>
                    <td>是</td>
                    <td>调用时间戳，单位秒</td>
                </tr>
                <tr>
                    <td>token</td>
                    <td>String</td>
                    <td>是</td>
                    <td>请求令牌</td>
                </tr>
                </tbody>
            </table>
            <h4 id="返回值">返回值</h4>
            <table>
                <thead>
                <th>字段名</th>
                <th>类型</th>
                <th>是否必填</th>
                <th>描述</th>
                </thead>
                <tbody>
                <tr>
                    <td>errno</td>
                    <td>int</td>
                    <td>是</td>
                    <td>接口返回状态</td>
                </tr>
                <tr>
                    <td>data</td>
                    <td>string</td>
                    <td>是</td>
                    <td>内容json</td>
                </tr>
                <tr>
                    <td>data.totalPage</td>
                    <td>int</td>
                    <td>是</td>
                    <td>总页数</td>
                </tr>
                <tr>
                    <td>data.pageSize</td>
                    <td>int</td>
                    <td>是</td>
                    <td>每页数据返回行数</td>
                </tr>
                <tr>
                    <td>data.totalNum</td>
                    <td>int</td>
                    <td>是</td>
                    <td>数据总行数</td>
                </tr>
                <tr>
                    <td>data.audioList</td>
                    <td>string</td>
                    <td>是</td>
                    <td>音频集合json</td>
                </tr>
                <tr>
                    <td>data.audioList[].id</td>
                    <td>string</td>
                    <td>是</td>
                    <td>音频ID</td>
                </tr>
                <tr>
                    <td>data.audioList[].name</td>
                    <td>string</td>
                    <td>是</td>
                    <td>音频名</td>
                </tr>
                <tr>
                    <td>data.audioList[].playUrl</td>
                    <td>string</td>
                    <td>是</td>
                    <td>音频播放地址</td>
                </tr>
                <tr>
                    <td>data.audioList[].playUrlFormat</td>
                    <td>String</td>
                    <td>是</td>
                    <td>mp3,默认mp3</td>
                </tr>
                <tr>
                    <td>data.audioList[].createTime</td>
                    <td>int</td>
                    <td>是</td>
                    <td>更新时间戳</td>
                </tr>
                <tr>
                    <td>data.audioList[].updateTime</td>
                    <td>int</td>
                    <td>是</td>
                    <td>更新时间戳</td>
                </tr>
                <tr>
                    <td>data.audioList[].orderNum</td>
                    <td>int</td>
                    <td>是</td>
                    <td>节目序号，序号越小，排序越靠前</td>
                </tr>
                <tr>
                    <td>data.audioList[].saleType</td>
                    <td>int</td>
                    <td>可选</td>
                    <td>付费类型0-免费1-付费</td>
                </tr>
                </tbody>
            </table>
            <h4 id="实例">实例</h4>
            <pre><code>
https://wweb.yourhost.com/baidu_dueros/audio_list?page=1&albumId=tape1a_002001
{
    "errno": "0",
    "data": {
        "totalPage": 5,
        "audioList": [
            {
                "updateTime": 1502951619,
                "name": "XXXX",
                "saleType": 0,
                "orderNum": 0,
                "playUrlFormat": "mp3",
                "createdTime": 1514775599,
                "id": "2001",
                "playUrl": "https://video.yourhost.com/videos/static/29181819.mp3"
            },
        ],
        "totalNum": 50,
        "pageSize": 10
    }
}
            </code></pre>
        </div>
    </div>
{% endblock contentblock %}